﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Shop.User.Models;

namespace Shop.User.Services
{
      
    public class UsersAccess
    {
        Shop.User.Repositories.UsersAccess UA = new Repositories.UsersAccess();
        public UsersInfo SelectUser(string UName)
        {
            return UA.SelectUser(UName);
        }

        public UsersInfo SelectUserByid(int UID)
        {
            return UA.SelectUserByid(UID);
        }

        public string UpdateUser(string sql,params string[] paramssql)
        {
            UA.UpdateUsers(sql, paramssql);
            return "";
        }
        public object InsertUsers(UsersInfo NInfo)
        {
            return UA.InsertUsers(NInfo);
        }
    }
}
